connect

fun connect(uri: String, timeoutMillis: Long, code: String? = null, opening: (Link) -> Unit = {})

Opens a link to the site listening at uri (ws://host:port), waiting for it at most timeoutMillis: code presented if given (see Site.requiresCode), and the link given to opening before it opens